//Replication data for: Owsiak, Andrew P., and John A. Vasquez. 2021. The Limited Scope of the Democratic Peace: What We Are Missing.

use "/Limited Scope Replication.dta", clear

//Notes
//Suffix 1 = 1816-1945 period
//Suffix 2 = 1946-1989 period
//Suffix 3 = 1990-2001 period

//Main manuscript
//Table 1
tab rel_anywar2 rel_alwaysjtdem2, r chi2 lrchi2
tab rel_anywar3 rel_alwaysjtdem3, r chi2 lrchi2

//Table 2
tab rel_anywar2 rel_alwaysjtdem2 if rel_everpolrel2==1, r chi2 lrchi2
tab rel_anywar3 rel_alwaysjtdem3 if rel_everpolrel3==1, r chi2 lrchi2

//Table 3
tab rel_anywar2 rel_alwaysjtdem2 if rel_anymidsall==1, r chi2 lrchi2
tab rel_anywar3 rel_alwaysjtdem3 if rel_anymidsall==1, r chi2 lrchi2

//Table 4
tab rel_anymids2 rel_alwaysjtdem2, r chi2 lrchi2
tab rel_anymids3 rel_alwaysjtdem3, r chi2 lrchi2

//Table 5
tab rel_anymids2 rel_alwaysjtdem2 if rel_everpolrel2==1, r chi2 lrchi2
tab rel_anymids3 rel_alwaysjtdem3 if rel_everpolrel3==1, r chi2 lrchi2

//Table 6
//Only consolidates main results across other analyses listed in this file---namely, Tables 1-5, as well as Appendix A.

//Online appendix
//Appendix A. 1816-1945 period
//Table A1
tab rel_anywar1 rel_alwaysjtdem1, r chi2 lrchi2
tab rel_anywar1 rel_alwaysjtdem1 if rel_everpolrel1==1, r chi2 lrchi2
tab rel_anywar1 rel_alwaysjtdem1 if rel_anymidsall==1, r chi2 lrchi2

//Table A2
tab rel_anymids1 rel_alwaysjtdem1, r chi2 lrchi2
tab rel_anymids1 rel_alwaysjtdem1 if rel_everpolrel1==1, r chi2 lrchi2

//Appendix B. Robustness.
//Table B1
tab rel_anywar1 rel_everjtdem1, r chi2 lrchi2
tab rel_anywar2 rel_everjtdem2, r chi2 lrchi2
tab rel_anywar3 rel_everjtdem3, r chi2 lrchi2

//Table B2
tab rel_anywar1 rel_everjtdem1 if rel_everpolrel1==1, r chi2 lrchi2
tab rel_anywar2 rel_everjtdem2 if rel_everpolrel2==1, r chi2 lrchi2
tab rel_anywar3 rel_everjtdem3 if rel_everpolrel3==1, r chi2 lrchi2

//Table B3
tab rel_anywar1 rel_everjtdem1 if rel_anymidsall==1, r chi2 lrchi2
tab rel_anywar2 rel_everjtdem2 if rel_anymidsall==1, r chi2 lrchi2
tab rel_anywar3 rel_everjtdem3 if rel_anymidsall==1, r chi2 lrchi2

//Table B4
tab rel_anymids1 rel_everjtdem1, r chi2 lrchi2
tab rel_anymids2 rel_everjtdem2, r chi2 lrchi2
tab rel_anymids3 rel_everjtdem3, r chi2 lrchi2

//Table B5
tab rel_anymids1 rel_everjtdem1 if rel_everpolrel1==1, r chi2 lrchi2
tab rel_anymids2 rel_everjtdem2 if rel_everpolrel2==1, r chi2 lrchi2
tab rel_anymids3 rel_everjtdem3 if rel_everpolrel3==1, r chi2 lrchi2

//Table B6
//Only consolidates results across other analyses listed in this file---namely, Tables B1-B5.
